/*    */ package com.zimbra.cs.client.soap;
/*    */ 
/*    */ import com.zimbra.common.service.ServiceException;
/*    */ import com.zimbra.common.soap.MailConstants;
/*    */ import java.util.ArrayList;
/*    */ import java.util.Iterator;
/*    */ import org.dom4j.DocumentHelper;
/*    */ import org.dom4j.Element;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class LmcGetTagRequest
/*    */   extends LmcSoapRequest
/*    */ {
/*    */   protected Element getRequestXML()
/*    */   {
/* 32 */     Element request = DocumentHelper.createElement(MailConstants.GET_TAG_REQUEST);
/* 33 */     return request;
/*    */   }
/*    */   
/*    */ 
/*    */   protected LmcSoapResponse parseResponseXML(Element responseXML)
/*    */     throws ServiceException
/*    */   {
/* 40 */     ArrayList tags = new ArrayList();
/* 41 */     for (Iterator ait = responseXML.elementIterator("tag"); ait.hasNext();) {
/* 42 */       Element a = (Element)ait.next();
/* 43 */       tags.add(parseTag(a));
/*    */     }
/*    */     
/*    */ 
/* 47 */     LmcGetTagResponse response = new LmcGetTagResponse();
/* 48 */     response.setTags(tags);
/* 49 */     return response;
/*    */   }
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/client/soap/LmcGetTagRequest.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */